import xadmin

# Create your models here.
# 老师列表
from teacher.models import Teacher, ClassList


class TeacherXadmin(object):
    list_display = ['image', 'name', 'education', 'gender', 'age', 'work_year', 'position', 'style', 'love_num',
                    'click_num']
    model_icon = 'fa fa-server'


# 班级信息
class ClassListXadmin(object):
    list_display = ['name', 'teacher', 'num', 'group']
    model_icon = 'fa fa-leaf'

xadmin.site.register(Teacher, TeacherXadmin)
xadmin.site.register(ClassList, ClassListXadmin)
